/*
 * Matrix.h
 *
 *  Created on: 2010-06-18
 *      Author: Mikolaj
 */

#ifndef MATRIX_H
#define MATRIX_H

class Matrix{
public:
	int m,n;
	float *tab;

	//column-major
	inline int idx(int x,int y) const {
		return x+y*n;
	}

	Matrix(int, int);
	~Matrix();

	float get(int,int) const;
	void set(int,int,float);
	int getRowsNumber() const;
	int getColumnsNumber() const;
};

#endif //MATRIX_H
